//
//  BehaviorVerifyRequest.h
//  iOSBaseFramework
//
//  Created by user on 2020/6/23.
//  Copyright © 2020 com.taylor. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "TRBehaviorVerifyModel.h"

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSUInteger, TRBehaviorVerifyType) {
    puzzle = 0, //滑动验证
    clickWord = 1 //字符校验
};

typedef NS_ENUM(NSUInteger, TRBehaviorVerifyResult) {
    normalState,
    progressState,
    successState,
    failureState
};


@interface TRBehaviorVerifyRequest : NSObject
//获取验证码接口
+ (void)captchaAccept:(TRBehaviorVerifyType)type FinishedBlock:(void(^)(BOOL result, TRBehaviorVerifyModel *model))finishedBlock;


//校验
+ (void)captchaCheck:(TRBehaviorVerifyType)type PointJson:(NSString *)pointJson Token:(NSString *)token FinishedBlock:(void(^)(BOOL result, TRBehaviorVerifyModel *model))finishedBlock;
@end

NS_ASSUME_NONNULL_END
